﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：MobileSMSRecord.cs
// 功能描述：TongTongMall.MallWeb.Core
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Domain.Entities;
using TongTongMall.Domain.Repositories.Attributes;
using TongTongMall.Domain.Repositories.Entities;

namespace TongTongMall.MallWeb.Core.Chip
{
    [System.ComponentModel.DataAnnotations.Schema.Table("MobileSMSRecord")]
    public class MobileSMSRecord : AggregateRoot, IMustHaveTenant
    {
        /// <summary>
        /// ID
        /// </summary>
        private Guid _iD;
        /// <summary>
        /// 手机号
        /// </summary>
        private string _mobile;
        /// <summary>
        /// 添加日期
        /// </summary>
        private DateTime _addDate;
        /// <summary>
        /// 手机验证码
        /// </summary>
        private string _mobileVCode;
        /// <summary>
        /// 图形验证码
        /// </summary>
        private string _imageVcode;
        /// <summary>
        /// 短信内容
        /// </summary>
        private string _sMSContent;
        /// <summary>
        /// IP
        /// </summary>
        private string _iP;
        /// <summary>
        /// 其他信息
        /// </summary>
        private string _otherDetail;

        /// <summary>
        /// ID
        /// </summary>
        [Identify]
        public Guid ID
        {
            get
            {
                return _iD;
            }

            set
            {
                _iD = value;
            }
        }
        /// <summary>
        /// 手机号
        /// </summary>
        public string Mobile
        {
            get
            {
                return _mobile;
            }

            set
            {
                _mobile = value;
            }
        }
        /// <summary>
        /// 添加日期
        /// </summary>
        public DateTime AddDate
        {
            get
            {
                return _addDate;
            }

            set
            {
                _addDate = value;
            }
        }
        /// <summary>
        /// 手机验证码
        /// </summary>
        public string MobileVCode
        {
            get
            {
                return _mobileVCode;
            }

            set
            {
                _mobileVCode = value;
            }
        }
        /// <summary>
        /// 图形验证码
        /// </summary>
        public string ImageVcode
        {
            get
            {
                return _imageVcode;
            }

            set
            {
                _imageVcode = value;
            }
        }
        /// <summary>
        /// 短信内容
        /// </summary>
        public string SMSContent
        {
            get
            {
                return _sMSContent;
            }

            set
            {
                _sMSContent = value;
            }
        }
        /// <summary>
        /// IP
        /// </summary>
        public string IP
        {
            get
            {
                return _iP;
            }

            set
            {
                _iP = value;
            }
        }
        /// <summary>
        /// 其他信息
        /// </summary>
        public string OtherDetail
        {
            get
            {
                return _otherDetail;
            }

            set
            {
                _otherDetail = value;
            }
        }

        /// <summary>
        /// 租户Id
        /// </summary>
        public long TenantID
        {
            get;
            set;
        }
    }
}
